package com.ruoyi.inventory.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 库存预警对象 t_inventory_warning
 * 
 * @author ruoyi
 * @date 2024-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class InventoryWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Long warehouseId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;

    /** 预警值 */
    @Excel(name = "预警值")
    private String warningValue;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private Long status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /**获取物料名称*/
    private String materialName;
    /**获取库存数量*/
    private Long quantity;
    /**获取仓库名称*/
    private String warehouseName;
}
